<script setup>
import iMap from "./openlayerJs/iMap";
import { ref, onMounted } from "vue";
onMounted(() => {
  console.log("开始");
  iMap.Load_Map();
});
</script>
<template>
  <div>
    <div id="map"></div>
    <div class="toop"><button @click="iMap.createLine">绘制曲线</button></div>
  </div>
</template>

<style scoped>
#map {
  width: 100%;
  height: 100vh;
}
.toop {
  position: absolute;
  top: 10px;
  right: 100px;
}
</style>